<script>
export default{
    data(){
        return{
            name:'MyLogin'
        }
    },methods:{
        send(){
            this.$emit('onEvent',this.name)
        }
    }
}
</script>

<template>
    <input type="button" value="点击传递" @click="send">
</template>

<style>

</style>